export function getxAxis(data, config) {
  return {
    type: 'category',
    boundaryGap: false,
    data: data,
    axisTick: {
      show: false
    },
    axisLabel: {
      color: 'rgb(227,228,229)',
      margin: 10,
      interval: 0
    },
    axisLine: {
      show: false
    }
  }
}
export function getyAxis(name, config) {
  return {
    name: name,
    type: 'value',
    axisLabel: {
      color: '#D1D4DD',
      margin: 15
    },
    nameTextStyle: {
      color: '#D1D4DD',
      padding: [0, 0, 0, -40]
    },
    splitLine: {
      show: true,
      lineStyle: {
        type: 'dashed',
        color: 'rgba(209, 212, 221, 0.08)'
      }
    }
  }
}
export function getGrid(config) {
  return {
    left: '5%',
    right: '5%',
    bottom: '5%',
    top: '20%',
    containLabel: true
  }
}
export function getColors(conf) {
  return [
    'rgba(37,186,139,1)',
    'rgba(128,216,208,1)',
    'rgba(15,124,241,1)',
    'rgba(97,211,236,1)',
    'rgba(59,226,75,1)'

  ]
}
